package com.wangcang.widgetlibrary.activity;

import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.widget.ListView;

import com.wangcang.widgetlibrary.R;
import com.wangcang.widgetlibrary.adapter.TestSlidebarLvAdapter;

import java.util.ArrayList;
import java.util.List;

public class TestSlidebarActivity extends AppCompatActivity {

	private ListView mLv;
	private TestSlidebarLvAdapter mAdapter;

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_test_slidebar);
		mLv = (ListView) findViewById(R.id.lv);
		List<String> list = new ArrayList<>();
		for (int i = 0; i < 100; i++) {
			list.add("");
		}
		mAdapter = new TestSlidebarLvAdapter(list);
		mLv.setAdapter(mAdapter);
	}
}
